package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type VideoImageRouter struct {}

// InitVideoImageRouter 初始化 videoImage表 路由信息
func (s *VideoImageRouter) InitVideoImageRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	videoImageRouter := Router.Group("videoImage").Use(middleware.OperationRecord())
	videoImageRouterWithoutRecord := Router.Group("videoImage")
	videoImageRouterWithoutAuth := PublicRouter.Group("videoImage")
	{
		videoImageRouter.POST("createVideoImage", videoImageApi.CreateVideoImage)   // 新建videoImage表
		videoImageRouter.DELETE("deleteVideoImage", videoImageApi.DeleteVideoImage) // 删除videoImage表
		videoImageRouter.DELETE("deleteVideoImageByIds", videoImageApi.DeleteVideoImageByIds) // 批量删除videoImage表
		videoImageRouter.PUT("updateVideoImage", videoImageApi.UpdateVideoImage)    // 更新videoImage表
	}
	{
		videoImageRouterWithoutRecord.GET("findVideoImage", videoImageApi.FindVideoImage)        // 根据ID获取videoImage表
		videoImageRouterWithoutRecord.GET("getVideoImageList", videoImageApi.GetVideoImageList)  // 获取videoImage表列表
	}
	{
	    videoImageRouterWithoutAuth.GET("getVideoImagePublic", videoImageApi.GetVideoImagePublic)  // videoImage表开放接口
	}
}
